package com.ruoyi.constant;

/**
 * 矿山图层开采状态枚举
 */
public enum KsTcKcztEnum {

    LX1("12001", "正在开采"),
    LX2("12003", "关闭或废弃");

    private String code;
    private String desc;

    KsTcKcztEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(String code) {
        for (KsTcKcztEnum value : KsTcKcztEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
